package com.woniuxy.homepage.core.service.impl;

import com.woniuxy.homepage.core.model.CarBrand;
import com.woniuxy.homepage.core.mapper.CarBrandMapper;
import com.woniuxy.homepage.core.service.CarBrandService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2021-06-30
 */
@Service
public class CarBrandServiceImpl extends ServiceImpl<CarBrandMapper, CarBrand> implements CarBrandService {

    @Resource
    private CarBrandMapper carBrandMapper;

    @Override
    public List<CarBrand> selectByHot() {
        List<CarBrand> list = this.carBrandMapper.selectByHot();
        return list;
    }

    @Override
    public List<CarBrand> selectAll() {
        List<CarBrand> list = this.carBrandMapper.selectAll();
        return list;
    }
}
